package cn.iocoder.yudao.module.blog.controller.admin.improve.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 课程 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class BlogImproveBaseVO {

    @Schema(description = "课程名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotNull(message = "课程名不能为空")
    private String name;

    @Schema(description = "课程名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotNull(message = "课程名不能为空")
    private String classity;

    @Schema(description = "类型：0免费1学员2购买", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "类型：0免费1学员2购买不能为空")
    private Integer type;

    @Schema(description = "价格", example = "5361")
    private Integer price;

    @Schema(description = "封面", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "封面不能为空")
    private String poster;

    @Schema(description = "简介")
    private String descContent;

    @Schema(description = "简介图片", example = "https://www.iocoder.cn")
    private String descUrl;

    @Schema(description = "访问数量")
    private Integer readNum;

    @Schema(description = "指向商品id")
    private Integer skuId;

}
